import { message } from 'ant-design-vue';
import {
  helloService
} from '@/services/common';

// 业务代码
const queryHelloAction = ({ commit }, data) => new Promise((resolve) => {
  helloService(data).then((res) => {
    if (res.success) {
      const { total } = res.data;
      commit('hellostr_set', res.data);
    }
    resolve(res);
  });
});

export default {
  queryHelloAction,
};
